import React, { Component } from 'react'
import { Layout, Breadcrumb } from 'antd';
import TheSidebar from '../../components/TheSidebar.jsx'
import './home.css'
const { Header, Content, Sider } = Layout;

export default class Home extends Component {
    state = {
        collapsed: false,
    };

    onCollapse = collapsed => {
        console.log(collapsed);
        this.setState({ collapsed });
    };

    render() {
        const { collapsed } = this.state;
        return (
            <Layout style={{ minHeight: '100vh' }}>
                <Header className="head" style={{color:'#fff',fontSize:'30px' }}>HREADER</Header>

                <Layout className="site-layout">
                    <Sider collapsible collapsed={collapsed} onCollapse={this.onCollapse}>
                        <div className="logo" />
                        <TheSidebar></TheSidebar>
                    </Sider>
                    <Content style={{ margin: '0 16px' }}>
                        <Breadcrumb style={{ margin: '16px 0' }}>
                            <Breadcrumb.Item>User</Breadcrumb.Item>
                            <Breadcrumb.Item>Bill</Breadcrumb.Item>
                        </Breadcrumb>
                        <div className="site-layout-background" style={{ padding: 24, minHeight: 360 }}>
                           
                        </div>
                    </Content>
                </Layout>
            </Layout>
        );
    }
}
